<?php
use TbfRuntime\RuntimeProvider;
class TbfRuntime {
    /**
     * @return TbfRuntime\RuntimeProvider
     */
    static function get(){
        if (self::$obj===null){
            self::$obj = new \TbfRuntime\NativeRuntime();
        }
        return self::$obj;
    }
    static function set(RuntimeProvider $obj){
        self::$obj = $obj;
    }
    private static $obj = null;

    //退出mock点
    static function doExit(){
        TbfRuntime::get()->doExit();
    }

    //输出header的mock点
    static function outHeader($key,$value){
        TbfRuntime::get()->outHeader($key,$value);
    }
} 